package com.sloera.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
//@EnableEurekaClient
//此处大小写和controller里请求的需要一致
//@RibbonClient(name = "cloud-payment-service", configuration = MySelfRule.class)
@EnableFeignClients
@EnableHystrix //消费端服务降级使用
public class OrderHystrixMain80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderHystrixMain80.class, args);
    }
}
